function fizzBuzz(n: number): string[] {
    let arr: string[] = new Array(n).fill('');
    for (let item in arr) {
        if(parseInt(item)%3 === 2){
            
                arr[item] += "Fizz"
        }
        if (parseInt(item)%5 === 4) {
            arr[item] += "Buzz"
        }
        if(!arr[item]) {
            arr[item] = (parseInt(item)+1).toString()
        }
    }
    return arr
};

console.log(fizzBuzz(3))